<?php

echo phpinfo();

// $mysql_conf = array(
//     'host'    => 'rm-uf65n6r5xw84y80wj.mysql.rds.aliyuncs.com:3306',
//     'db'      => 'video',
//     'db_user' => 'liuyiyingshi',
//     'db_pwd'  => 'Rk3cyG5WiSJK'
// );

// $mysqli = @new mysqli($mysql_conf['host'], $mysql_conf['db_user'], $mysql_conf['db_pwd']);
// if ($mysqli->connect_errno) {
//     die("could not connect to the database:\n" . $mysqli->connect_error);//诊断连接错误
// }
// $mysqli->query("set names 'utf8';");//编码转化
// $select_db = $mysqli->select_db($mysql_conf['db']);
// if (!$select_db) {
//     die("could not connect to the db:\n" .  $mysqli->error);
// }
// $sql = "select id,user_name from ly_user where user_name='六先生';";  //查询user表
// $res = $mysqli->query($sql);
// if (!$res) {
//     die("sql error:\n" . $mysqli->error);
// }
// while($row = $res->fetch_assoc()){
//     echo '<pre>';
//     var_dump($row);
// }

// $res->free();
// $mysqli->close();